<?php
/**
{
    "tagId": "INT //",
    "tagImg": "VARCHAR //标签图标@image; ",
    "tagDesc": "TEXT //标签描述@search; ",
    "tagName": "VARCHAR //标签名称@search; ",
    "tagSort": "INT //排序",
    "status": "TINYINT //状态@status; 3::有效::@admin; 88::删除::@admin; "
}
 */

class Tag extends Base
{
    
	private $tagId= '';//
	private $tagImg= NULL;//标签图标@image;
	private $tagDesc= '';//标签描述@search;
	private $tagName= NULL;//标签名称@search;
	private $tagSort= "0";//排序
	private $status= "3";//状态@status;3::有效::@admin;88::删除::@admin;

    public $isDbData = false;

    public function __construct()
    {
        parent::__construct();
    }


    public function __get($name) {
        return $this->$name;
    }

    public function __set($name, $value) {
        if(!$this->isDbData){
            if(!in_array($name,$this->loadedFiled))$this->loadedFiled[] = $name;
        }

        $this->$name=$value;
        $this->arr[$name] = $value;
    }

    public  function table()
    {
        return 'tbl_tag';
    }
    
    public  function key(){
        return 'tagId';
    }


    
    public static  function hideField()
    {
        return [];
    }
            
    public static  function skipField()
    {
        return [];
    }
            
    public static  function noViewField()
    {
        return [];
    }
            
    public static  function jsonField()
    {
        return [];
    }
            
    public static  function noLoadField()
    {
        return [];
    }
            
    public static  function deleteField()
    {
        return [];
    }
            
    public function className()
    {
        return 'Tag';
    }
    
    public  function field()
    {
        return array (  'tagId' =>   array (    0 => 'INT',    1 => 11,    2 => '',  ),  'tagImg' =>   array (    0 => 'VARCHAR',    1 => 512,    2 => '标签图标@image;',  ),  'tagDesc' =>   array (    0 => 'TEXT',    1 => 0,    2 => '标签描述@search;',  ),  'tagName' =>   array (    0 => 'VARCHAR',    1 => 45,    2 => '标签名称@search;',  ),  'tagSort' =>   array (    0 => 'INT',    1 => 11,    2 => '排序',  ),  'status' =>   array (    0 => 'TINYINT',    1 => 4,    2 => '状态@status;3::有效::@admin;88::删除::@admin;',  ),);
    }


}